import http from './http'
// 获取可领取的优惠卷
export function getCouponConfigList() {
    const params = {
        url: '/mall4cloud_coupon/platform/page',
        method: 'GET',
        data: {},
        callBack: res => {
          if (res) {
            uni.setTabBarBadge({
              index: 2,
              text: res + ''
            })
          } else {
            uni.removeTabBarBadge({
              index: 2
            })
          }
        }
      }
      if (uni.getStorageSync('token')) {
        http.request(params)
      }
}